<!-- 编辑区域 -->
<div class="lists">
    <!-- 搜索框及工具条 -->
    <div class="c-head-box">
        <form method="get" action="{:Url('ad_location_list')}">
            <ul>
                <li class="c-head-search">
                    <!-- 搜索条件 -->
                    <ul>
                        <li><span>App类型：</span>{:widget('common/Select/select',array('app_type','app_type',$app_type))}</li>
                    </ul>
                </li>
                <li class="c-head-button">
                    <!-- 操作按钮 -->
                    <div class="fr"><input type="submit" class="but_blue" value="搜索"></div>
                    <div class="fr"><a class="but_blue" href="{:Url('ad_location_add')}">添加广告位</a></div>
                </li>
            </ul>
        </form>
    </div>

    <!--用户列表-->
    <div class="lists-tab-cont">
        <div class="lists-table">
            <table class="pointer" cellpadding="0" cellspacing="0" border="0">
                <thead>
                <tr>
                    <th style="width: 8%" class="tabSort-header"><a class="tabSort-header-inner"><p>编号</p></a></th>
                    <th style="width: 8%" class="tabSort-header"><a class="tabSort-header-inner"><p>APP类型</p></a></th>
                    <th style="width: 15%" class="tabSort-header"><a class="tabSort-header-inner"><p>名称</p></a></th>
                    <th style="width: 15%" class="tabSort-header"><a class="tabSort-header-inner"><p>类型</p></a></th>
                    <th style="width: 15%" class="tabSort-header"><a class="tabSort-header-inner"><p>编码</p></a></th>
                    <th style="width: 8%" class="tabSort-header"><a class="tabSort-header-inner"><p>广告数量</p></a></th>
                    <th style="width: 8%" class="tabSort-header"><a class="tabSort-header-inner"><p>广告宽度</p></a></th>
                    <th style="width: 8%" class="tabSort-header"><a class="tabSort-header-inner"><p>广告长度</p></a></th>
                    <th class="tabSort-header"><a class="tabSort-header-inner"><p>操作</p></a></th>
                </tr>
                </thead>
                <tbody>
                {foreach name="ad_location_list" item="info"}
                    <tr>
                        <td>{$info.ad_location_id}</td>
                        <td>{:widget('common/Color/color',array('app_type',$info['app_type']))}</td>
                        <td>{$info.ad_location_name}</td>
                        <td>{:widget('common/Color/color',array('ad_location_type',$info['ad_location_type']))}</td>
                        <td>{$info.ad_location_code}</td>
                        <td>{$info.number}</td>
                        <td>{$info.width}</td>
                        <td>{$info.height}</td>
                        <td>
                            <a href="{:Url('ad_location_edit',array('ad_location_id'=>$info['ad_location_id']))}" class="blue" >编辑广告位</a>
                            <a href="{:Url('ad_list',array('ad_location_id'=>$info['ad_location_id']))}" class="blue" >广告管理</a>
                        </td>
                    </tr>
                {/foreach}
                </tbody>
            </table>
        </div>
    </div>

    <!-- 翻页模板 -->
    <div class="page">
        {$Think.config.page_html}
    </div>
</div>